<?php 
class base {
	protected $link1;
	function __construct() {
		require('conexion.php');
		
		$this->link1 = mysql_connect("$servidor", "$usuario", "$password");
		mysql_select_db("$base", $this->link1);
		mysql_query("SET NAMES 'utf8'", $this->link1);

	}
}
?>